<include file="Public:header" />
<load href="__PUBLIC__/Js/Ajax/ThinkAjax-1.js" />
<load href="__PUBLIC__/Js/UserJs.js" />
<script language="javascript">
	function yhServer(Ful,lx){
		var str = $F(Ful).replace(/^\s+|\s+$/g,"");
		var re = /[^(\w){6,20}$]/g;
		str = str.replace(re,"");
		document.getElementById(Ful).value = str;
		
		if (str != ""){
			if(lx==0){ThinkAjax.send('__URL__/check_shopid/','ajax=1&shopid='+str,'',Ful+'1');}
			if(lx==1){ThinkAjax.send('__URL__/check_reid/','ajax=1&reid='+str,'',Ful+'1');}
			if(lx==2){ThinkAjax.send('__URL__/check_fid/','ajax=1&fid='+str,'',Ful+'1');}
			if(lx==3){ThinkAjax.send('__URL__/check_userid/','ajax=1&userid='+str,'',Ful+'1');}
		}
	}
	function guolv(Ful){
		var str = $F(Ful).replace(/^\s+|\s+$/g,"");
		var re = /[^(\w){6,20}$]/g;
		str = str.replace(re,"");
		document.getElementById(Ful).value = str;
	}
</script>
<div class="ncenter_box">
<div class="accounttitle"><h1>注册会员 </h1></div>

      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tab1">
      <tr>
        <td>
        <form method='post' id="form1" name="form1" action="__URL__/usersAdd"/>
        <table width="100%" border="0" cellpadding="3" cellspacing="0" class="tab4">
          <tr>
            <td width="20%" align="right"><span class="zc_hong">*</span> 所属报单中心：</td>
            <td width="20%"><input name="shopid" type="text" id="shopid" value="{$zzc[1]}" class="ipt" onKeyUp="guolv(this.name)" onFocus="notice('0','')" onBlur="javascript:yhServer(this.name,'0');notice('0','none')" /></td>
            <td width="60%"><div id="shopid1" class="info"><div id="0" class="focus_r" style="display:none;"><div class="msg_tip">请填写报单中心。</div></div></div></td>
          </tr>
          <tr>
            <td width="20%" align="right"><span class="zc_hong">*</span> 推荐人：</td>
            <td width="20%"><input name="RID" id="RID" type="text" value="{$zzc[2]}" class="ipt" onKeyUp="guolv(this.name)" onFocus="notice('1','')" onBlur="javascript:yhServer(this.name,'1');notice('1','none')" /></td>
            <td width="60%"><div id="RID1" class="info"><div id="1" class="focus_r" style="display:none;"><div class="msg_tip">请填写推荐人。</div></div></div> </td>
          </tr>
          <tr>
            <td align="right"><span class="zc_hong">*</span> 接点人：</td>
            <td><input name="FID" id="FID" type="text"  value="{$zzc[3]}" class="ipt" onKeyUp="guolv(this.name)" onFocus="notice('2','')" onBlur="javascript:yhServer(this.name,'2');notice('2','none')" /></td>
            <td><div id="FID1" class="info"><div id="2" class="focus_r" style="display:none;"><div class="msg_tip">请填写接点人。</div></div></div></td>
          </tr>
          <empty name="User_namex">
          <else />
          <tr>
            <td align="right"><span class="zc_hong">*</span> {$User_namex}：</td>
            <td>
			<eq name="myid" value="1">
            <input name="UserID" id="UserID" type="text"  value="{$flist[1]['UserID']}" class="ipt" onKeyUp="guolv(this.name)" onFocus="notice('3','')" onBlur="javascript:yhServer(this.name,'3');notice('3','none')" />
            <else/>
			<select name="UserID" id="UserID" onchange="javascript:yhServer()">
            <volist name="flist" id="fck_arr">
            <option value="{$fck_arr['UserID']}" >{$fck_arr['UserID']}</option>
            </volist>
            </select>&nbsp;&nbsp;<a href="__APP__/Fck/users">刷新</a>
            </eq>
            </td>
            <td><div id="UserID1" class="info"><div id="3" class="focus_r" style="display:none;"><div class="msg_tip">此会员编号用于登录系统使用。</div></div></div></td>
          </tr>
          </empty>
          <empty name="Nick_namex">
          <else />
          <tr style="display:none">
            <td align="right"><span class="zc_hong">*</span> {$Nick_namex}：</td>
            <td><input name="nickname" type="text" class="ipt" id="nickname" onFocus="notice('14','')"  onblur="notice('14','none')" onKeyUp="guolv(this.name);avascript:Null_Full(this.name)"/></td>
            <td><div id="nickname1" class="info"><div id="14" class="focus_r" style="display:none;"><div class="msg_tip">请输入您的昵称。</div></div></div></td>
          </tr>
          </empty>
          <tr>
            <td align="right">所在区域：</td>
            <td><select name="TPL" id="TPL">
                <option value="0" {$TPL[0]}> A 部门 </option>
                <option value="1" {$TPL[1]}> B 部门 </option>
                <option value="2" {$TPL[2]}> C 部门 </option>
            </select></td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td colspan="3" style="height:5px;"><hr></td>
          </tr>
          <tr>
            <td align="right"><span class="zc_hong">*</span> 一级密码：</td>
            <td><input name="Password" type="password" class="ipt"  id="Password" onFocus="notice('4','')"  onblur="javascript:yhPass(this.name);notice('4','none');" value="111111"/></td>
            <td><div id="Password1" class="info"><div id="4" class="focus_r" style="display:none;"><div class="msg_tip">请使用字母加数字或符号的组合密码。</div></div></div></td>
          </tr>
          <tr>
            <td align="right"><span class="zc_hong">*</span> 确认一级密码：</td>
            <td><input name="rePassword" type="password" class="ipt"  id="rePassword" onFocus="notice('5','')"  onblur="javascript:yhrePass(this.name,'Password');notice('5','none')" value="111111"/></td>
            <td><div id="rePassword1" class="info"><div id="5" class="focus_r" style="display:none;"><div class="msg_tip">确认一级密码。</div></div></div></td>
          </tr>
          <tr>
            <td align="right"><span class="zc_hong">*</span> 二级密码：</td>
            <td><input name="PassOpen" type="password" class="ipt"  id="PassOpen" onFocus="notice('6','')"  onblur="javascript:yhPass(this.name);notice('6','none')" value="222222"/></td>
            <td><div id="PassOpen1" class="info"><div id="6" class="focus_r" style="display:none;"><div class="msg_tip">请使用字母加数字或符号的组合密码。</div></div></div></td>
          </tr>
          <tr>
            <td align="right"><span class="zc_hong">*</span> 确认二级密码：</td>
            <td><input name="rePassOpen" type="password" class="ipt"  id="rePassOpen" onFocus="notice('7','')"  onblur="javascript:yhrePass(this.name,'PassOpen');notice('7','none')" value="222222"/></td>
            <td><div id="rePassOpen1" class="info"><div id="7" class="focus_r" style="display:none;"><div class="msg_tip">确认二级密码。</div></div></div></td>
          </tr>
          <tr style="display:none">
            <td align="right"><span class="zc_hong">*</span> 密保问题：</td>
            <td>
            <select name="wenti">
              <volist name='wentilist' id='voo'>
                  <option value="{$voo}" <eq name="key" value="0">selected</eq> >{$voo}</option>
              </volist>
            </select></td>
            <td></td>
          </tr>
          <tr style="display:none">
            <td align="right"><span class="zc_hong">*</span> 密保答案：</td>
            <td><input name="wenti_dan" type="text" class="ipt"  id="wenti_dan" onFocus="notice('wenti_dan1','')"  onblur="notice('wenti_dan1','none')" value="xx" maxlength="255"/></td>
            <td><div id="wenti_dan1" class="info" style="display:none;"><div class="focus_r"><div class="msg_tip">输入密保答案。</div></div></div></td>
          </tr>
          <tr>
            <td colspan="3" style="height:5px;"><hr></td>
          </tr>
          <tr>
            <td align="right"><span class="zc_hong">*</span> 开户银行：</td>
            <td><select name="BankName" onChange="javasctip:bank_us(this.value);">
              <volist name='bank' id='voo'>
                  <option value="{$bank[$key]}">{$bank[$key]}</option>
              </volist>
            </select></td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td align="right"><span class="zc_hong">*</span> <span id="bank_id"><eq name="bank[0]" value="财付通">财付通号<else />银行卡号</eq></span>：</td>
            <td><input name="BankCard" type="text" class="ipt" id="BankCard" onFocus="notice('8','')"  onblur="notice('8','none')" onKeyUp="javascript:Null_Int(this.name)" value="123456789" maxlength="19" /></td>
            <td><div id="BankCard1" class="info"><div id="8" class="focus_r" style="display:none;"><div class="msg_tip">请输入您的号码。</div></div></div></td>
          </tr>
          <tr>
            <td align="right"><span class="zc_hong">*</span> 开户姓名：</td>
            <td><input name="UserName" type="text" class="ipt"  id="UserName" onFocus="notice('9','')"  onblur="notice('9','none')" onKeyUp="javascript:Null_Full(this.name)" value="122" maxlength="10" /></td>
            <td><div id="UserName1" class="info"><div id="9" class="focus_r" style="display:none;"><div class="msg_tip">请输入您的姓名。</div></div></div></td>
          </tr>
          <tr>
            <td align="right"><span class="zc_hong">*</span> 开户地址：省份：</td>
            <td><select name="BankProvince" id="s1" >
                <option></option>
              </select></td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td align="right"><span class="zc_hong">*</span> 城市：</td>
            <td><select name="BankCity" id="s2" >
                <option></option>
              </select></td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td align="right"><span class="zc_hong">*</span> 详细开户地址：</td>
            <td><input name="BankAddress" type="text" class="ipt" id="BankAddress" value="xx" /></td>
            <td><div id="BankAddress1" class="info"><div id="10" class="focus_r" style="display:none;"><div class="msg_tip">请输入您的详细开户地址。</div></div></div></td>
          </tr>
          <script language = JavaScript>
            var s=["s1","s2"];
            var opt0 = ["请选择","请选择"];
            function setup()
            {
                for(i=0;i<s.length-1;i++)
                document.getElementById(s[i]).onchange=new Function("change("+(i+1)+")");
                change(0);
            }
            setup();
          </script>
          <tr>
            <td colspan="3" style="height:5px;"><hr></td>
          </tr>
          <tr>
            <td align="right"><span class="zc_hong">*</span>身份证号：</td>
            <td><input name="UserCode" type="text" class="ipt" id="UserCode" onFocus="notice('11','')"  onblur="notice('11','none')" onKeyUp="javascript:Null_Full(this.name)" value="8585" maxlength="18" /></td>
            <td><div id="UserCode1" class="info"><div id="11" class="focus_r" style="display:none;"><div class="msg_tip">请输入您的身份证号。</div></div></div></td>
          </tr>
          <tr>
            <td align="right">联系地址：</td>
            <td><input name="UserAddress" type="text" id="UserAddress" value="1" class="ipt" onKeyUp="javascript:Null_Full(this.name)" onFocus="notice('12','')"  onblur="notice('12','none')" /></td>
            <td><div id="UserAddress1" class="info"><div id="12" class="focus_r" style="display:none;"><div class="msg_tip">请输入您的联系地址。</div></div></div></td>
          </tr>
          <tr>
            <td align="right"><span class="zc_hong">*</span>E-Mail：</td>
            <td><input name="UserEmail" type="text" class="ipt"  id="UserEmail" onFocus="notice('15','')"  onblur="notice('15','none')" onKeyUp="javascript:Null_Full(this.name)" value="123@qq.com" /></td>
            <td><div id="UserEmail1" class="info"><div id="15" class="focus_r" style="display:none;"><div class="msg_tip">请输入您的 E-Mail。（找回密码时使用，请认真填写）</div></div></div></td>
          </tr>
          <tr>
            <td align="right">Q Q：</td>
            <td><input name="qq" type="text"  id="qq" value="22" class="ipt" onKeyUp="javascript:Null_Int(this.name)" onFocus="notice('16','')"  onblur="notice('16','none')" /></td>
            <td><div id="qq1" class="info"><div id="16" class="focus_r" style="display:none;"><div class="msg_tip">请输入您的 Q Q。</div></div></div></td>
          </tr>



          <tr>
            <td align="right"><span class="zc_hong">*</span>联系电话：</td>
            <td><input name="UserTel" type="text" class="ipt"  id="UserTel" onFocus="notice('13','')"  onblur="notice('13','none')" onKeyUp="javascript:Null_Full(this.name)" value="163"/></td>
            <td><div id="UserTel1" class="info"><div id="13" class="focus_r" style="display:none;"><div class="msg_tip">请输入您的联系电话。</div></div></div></td>
          </tr>
			<tr>
			    <td align="right">申请级别：</td>
			    <td colspan="2">
				<volist name="s9" id="svo">
				<eq name="key" value="0">
				<input name="u_level" type="radio" id="radio" value="{$key}" checked="checked"  />
				<strong><span class="STYLE3">{$s9[$key]}元</span></strong>
				<else/>
				<input name="u_level" type="radio" id="radio" value="{$key}"/>
			    <strong><span class="STYLE3">{$s9[$key]}元</span></strong>
			    </eq>
				</volist>

				</td>
		  </tr>
          <tr style="display:none">
            <td colspan="3" >
            <table width="100%" class="tab3" border="0" cellpadding="0" cellspacing="1" bgcolor="#b9c8d0">
              <tr>
                <td colspan="2"><span style="padding-left:18%;"><b>请填写收货人信息</b></span></td>
              </tr>
              <tr>
                <td width="20%" align="right"><span class="hong">* </span>收货人姓名：</td>
                <td><input name="us_name" type="text" id="us_name" maxlength="20" value="1" /></td>
              </tr>
              <tr>
                <td align="right"><span class="hong">* </span>收货地址：</td>
                <td><input name="us_address" type="text" id="us_address" size="50" maxlength="100" value="2"/></td>
              </tr>
              <tr>
                <td align="right"><span class="hong">* </span>收货人电话：</td>
                <td><input name="us_tel" type="text" id="us_tel" maxlength="20" value="3"/></td>
              </tr>
            </table>
			</td>
          </tr>
          <tr>
            <td align="right">&nbsp;</td>
            <td><span class="center">
              <input name="submit1" id="Access" type="submit" class="button_text" value="注册" />
  &nbsp;&nbsp;
  <input name="重置" type="reset" class="button_text" value="重置" id="重置" />
            </span></td>
            <td>&nbsp;</td>
          </tr>
        </table>
        </form>
        </td>
      </tr>
      </table>
</div>
</body>
</html>